<?php echo $this->Html->script('Events/events_list_and_repositorie'); ?>

<div class='span10'>

	<?php echo $this->Form->input('eventTypeId', array('type' => 'hidden', 'value' => $data['eventTypeId'])); ?>
	<?php echo $this->Form->input('categorieCode', array('type' => 'hidden', 'value' => $data['categorieCode'])); ?>
	
	<ul class="nav nav-tabs">
	    <li id="btnNext"><a href="#">
	      <!--<span class="badge pull-right">42</span> aca podemos agregar la cantidad de eventos -->
	      Próximos
	    </a></li>
	    <li id="btnProgres"><a href="#">
	      <!--<span class="badge pull-right">42</span> aca podemos agregar la cantidad de eventos -->
	      En Progreso
	    </a></li>
	    <li id="btnLast"><a href="#">
	      <!--<span class="badge pull-right">42</span> aca podemos agregar la cantidad de eventos -->
	      Finalizados
	    </a></li>
	    <li id="btnCancel"><a href="#">
	      <!--<span class="badge pull-right">42</span> aca podemos agregar la cantidad de eventos -->
	      Cancelados
	    </a></li>
	    <li id="btnRepo"><a href="#">
	      <!--<span class="badge pull-right">42</span> aca podemos agregar la cantidad de eventos -->
	      Repositorio
	    </a></li>
	</ul>
	    
	<div id="content_result_by_status">
	    <div class='span10'>
	    <?php
			if(count($data['actives']) <= 0)
			echo "No hay eventos próximos"; 
			else
			{
			?>
			<table class="table table-bordered">
				    <thead>
						<tr>
							<th>Nombre</th>
							<th>Identificador</th>
							<th>Creado</th>
							<th colspan="2"></th>
						</tr>
				    </thead>
				    <tbody>
				    <?php foreach($data['actives'] as $field):?>				
				    <tr>
					<td><?php echo $field['Events']['name']?></td>
					<td><?php echo $field['Events']['identificator']?></td>
					<td><?php echo $field['Events']['created']?></td>
					<td style="text-align: center;"><i class="icon-edit"></i></td>
					<td style="text-align: center;"><i class="icon-trash"></i> </td>
				    </tr>
				    <?php endforeach;?>
				    </tbody>
			</table>
			<?php
			}
			
	    ?>
	    </div>
	</div>

</div>